//
//  CongratulateView.swift
//  WalkNovel
//
//  Created by Kevin on 2023/8/28.
//

import UIKit

class CongratulateView: UIView {

    lazy var leftImage: UIImageView = {
        return UIImageView(image: UIImage(named: "icon_fireworks_left"))
    }()
    
    lazy var conglabel: UILabel = {
        let label = UILabel()
        label.font = .wn_font(name: .regular, size: 14)
        label.textColor = .init(named: "black_333333")
        label.textAlignment = .center
        return label
    }()
    
    lazy var rightImage: UIImageView = {
        return UIImageView(image: UIImage(named: "icon_fireworks_right"))
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(leftImage)
        addSubview(conglabel)
        addSubview(rightImage)
        conglabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.bottom.equalTo(0)
        }
        leftImage.snp.makeConstraints { make in
            make.top.left.bottom.equalTo(0)
            make.width.equalTo(72)
        }
        rightImage.snp.makeConstraints { make in
            make.top.right.bottom.equalTo(0)
            make.width.equalTo(72)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
